<div class="post">
	
	<div class="buttons">
		<a class="book_start static" name="<?php echo $data->id; ?>" href="#" onclick="return false;">Open in window</a>

	</div>
	<div class="title">
		<h1><?php echo CHtml::link(CHtml::encode($data->title), $data->url); ?></h1>
	</div>
	<div class="author">
		posted by <?php echo $data->author->username . ' on ' . date('F j, Y',$data->create_time); ?>
	</div>
	<div class="postcontent">
		<?php
			
			 if($list){
        echo mb_substr(strip_tags($data->content),0,600,'UTF-8').".......";
    }else{
        $this->beginWidget('CMarkdown', array('purifyOutput'=>true));
			echo $data->content;
			$this->endWidget();
    }
    
		?>
	</div>
	<div class="nav">
		<b>Tags:</b>
		<?php echo implode(', ', $data->tagLinks); ?>
		<br/>
		<?php echo CHtml::link('Permalink', $data->url); ?> |
		<?php echo CHtml::link("Comments ({$data->commentCount})",$data->url.'#comments'); ?> |
		Last updated on <?php echo date('F j, Y',$data->update_time); ?>
	</div>
</div>
